package com.sihai.ehr.model.biz;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.sihai.core.BaseEntity;

/**
 * 周期定性审批流程
 * 
 * @author henry
 * 
 */
@Entity
public class ExamPeriodAuditing extends BaseEntity<Long> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7609253910125617727L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;

	/** 期数 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "period_id")
	private ExamPeriod examPeriod;
	
	/** 职务编号 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "duty_id")
	private Duty duty;

	/** 提交人 */
	private Long currentAuditerId;
	/** 第一个审核人[特批打分人] */
//	private Long firsterAudtingId;
	/** 第一个审核人员编号 */
	private Long firsterAuditerId;
	/** 提交类型 */
	private int generateCommitStatus;
	private int specialCommitStatus;
	
	private String hasAuditerIds;	//已经审核的ID集合
	
	@Override
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public ExamPeriod getExamPeriod() {
		return examPeriod;
	}
	public void setExamPeriod(ExamPeriod examPeriod) {
		this.examPeriod = examPeriod;
	}
	
	public Duty getDuty() {
		return duty;
	}
	
	public void setDuty(Duty duty) {
		this.duty = duty;
	}
	
	public Long getCurrentAuditerId() {
		return currentAuditerId;
	}
	
	public void setCurrentAuditerId(Long currentAuditerId) {
		this.currentAuditerId = currentAuditerId;
	}
	
	public Long getFirsterAuditerId() {
		return firsterAuditerId;
	}
	
	public void setFirsterAuditerId(Long firsterAuditerId) {
		this.firsterAuditerId = firsterAuditerId;
	}
	
//	public Long getFirsterAudtingId() {
//		return firsterAudtingId;
//	}
//	
//	public void setFirsterAudtingId(Long firsterAudtingId) {
//		this.firsterAudtingId = firsterAudtingId;
//	}
	
	public int getGenerateCommitStatus() {
		return generateCommitStatus;
	}
	
	public void setGenerateCommitStatus(int generateCommitStatus) {
		this.generateCommitStatus = generateCommitStatus;
	}
	
	public int getSpecialCommitStatus() {
		return specialCommitStatus;
	}
	
	public void setSpecialCommitStatus(int specialCommitStatus) {
		this.specialCommitStatus = specialCommitStatus;
	}
	
	public String getHasAuditerIds() {
		return hasAuditerIds;
	}
	
	public void setHasAuditerIds(String hasAuditerIds) {
		this.hasAuditerIds = hasAuditerIds;
	}
}
